﻿<HeaderedContentControl x:Class="Munimji.Controls.PopupWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:blacklight="clr-namespace:Blacklight.Controls;assembly=Blacklight.WPFControls"
    Background="Transparent" Margin="0" Foreground="White">
    <HeaderedContentControl.HeaderTemplate>
        <DataTemplate>
            <blacklight:GlassBorder VerticalAlignment="Top" Background="Black" Padding="5" CornerRadius="10,10,0,0">
                <TextBlock Text="{Binding}" FontSize="14" HorizontalAlignment="Center" />
            </blacklight:GlassBorder>
        </DataTemplate>
    </HeaderedContentControl.HeaderTemplate>
    <HeaderedContentControl.ContentTemplate>
        <DataTemplate>
        <Border MinHeight="100" BorderBrush="Black" BorderThickness="2" MinWidth="100" Opacity=".9">
                <Border.Background>
                    <LinearGradientBrush StartPoint="0.5,-1.5" EndPoint="0.5,.8">
                        <GradientStop Color="Black" Offset="1"/>
                        <GradientStop Color="Transparent" Offset="0"/>
                    </LinearGradientBrush>
                </Border.Background>
                    <ContentControl Content="{Binding}"/>
        </Border>
            </DataTemplate>
    </HeaderedContentControl.ContentTemplate>
</HeaderedContentControl>
